package com.beidouapp.domain.pojo;

/**
 * Dictionary type domain.
 */
public class DictType
{
    /** the dictionary type's code. */
    private String m_dictTypeCode;

    /** the dictionary type's name. */
    private String m_dictTypeName;

    /**
     * used to record the extended property of dictionary item, the name of the
     * names separated by a vertical bar.
     */
    private String m_propertyDescn;

    /** the dictionary type's description. */
    private String m_descn;

    public DictType ()
    {
    }

    public DictType (String dictTypeCode, String dictTypeName, String propertyDescn, String descn)
    {
        super ();
        m_dictTypeCode = dictTypeCode;
        m_dictTypeName = dictTypeName;
        m_propertyDescn = propertyDescn;
        m_descn = descn;
    }

    @Override
    public int hashCode ()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((m_dictTypeCode == null) ? 0 : m_dictTypeCode.hashCode ());
        return result;
    }

    @Override
    public boolean equals (Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass () != obj.getClass ())
            return false;
        DictType other = (DictType) obj;
        if (m_dictTypeCode == null)
        {
            if (other.m_dictTypeCode != null)
                return false;
        }
        else if (!m_dictTypeCode.equals (other.m_dictTypeCode))
            return false;
        return true;
    }

    public String getDictTypeCode ()
    {
        return m_dictTypeCode;
    }

    public void setDictTypeCode (String dictTypeCode)
    {
        m_dictTypeCode = dictTypeCode;
    }

    public String getDictTypeName ()
    {
        return m_dictTypeName;
    }

    public void setDictTypeName (String dictTypeName)
    {
        m_dictTypeName = dictTypeName;
    }

    public String getPropertyDescn ()
    {
        return m_propertyDescn;
    }

    public void setPropertyDescn (String propertyDescn)
    {
        m_propertyDescn = propertyDescn;
    }

    public String getDescn ()
    {
        return m_descn;
    }

    public void setDescn (String descn)
    {
        m_descn = descn;
    }
}
